package com.luoyi;

import com.luoyi.behavior.FlyBehavior;
import com.luoyi.behavior.impl.FlyNoWay;

public class RedDuck extends AbstractDuck {

    public RedDuck() {
        flyBehavior = new FlyNoWay();
    }

    @Override
    protected void display() {
        System.out.println("Display is Blue");
    }

    @Override
    protected void quark() {
        System.out.println(" quark ");
    }
}
